package com.ruizhong.PIW.service.impl;

import com.ruizhong.PIW.dao.TShootEquipmentMapper;
import com.ruizhong.PIW.entity.TShootEquipment;
import com.ruizhong.PIW.service.ShootDeviceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class ShootDeviceServiceImpl extends ServiceImpl<TShootEquipmentMapper, TShootEquipment> implements ShootDeviceService {

    @Override
    public void addNewDevice() {
        TShootEquipment tShootEquipment = new TShootEquipment();
        tShootEquipment.setNumberOfSoloShots(5);
        tShootEquipment.setSaveDays(1);
        tShootEquipment.setPortraitCropWidth(200);
        save(tShootEquipment);
    }
}
